import request from '@/utils/request'

export const getRoleListAPI = (data) => {
  return request({ url: '/park/sys/role', data })
}

export const addRoleAPI = (data) => {
  return request({
    url: '/park/sys/role',
    method: 'post',
    data
  })
}
export const delRoleAPI = (id) => {
  return request({
    url: '/park/sys/role/' + id,
    method: 'delete'
  })
}
export const getRoleUserAPI = (roleId) => {
  return request({
    url: '/park/sys/roleUser/' + roleId

  })
}
